class Point {
	public x: number;
	y: number;
	constructor(x: number, y: number) {
		this.x = x;
		this.y = y;
	}
	public getPosition() {
		return `${this.x},${this.y}`;
	}
}
const point = new Point(1, 2);
console.log('🚀 ~ file: class.ts ~ line 12 ~ point', point);

class Parent {
	public name: string; // 的
	constructor(name: string) {
		this.name = name;
	}
}
class Child extends Parent {
	constructor(name: string) {
		super(name);
	}
}
